module.exports = function(css) {
  console.log(css)
  console.log(window.innerWidth)
  // 事件没有效果
  window.onresize = _ => {
    const _css = resize(css)
    return _css
  }
  return resize(css)
  
}

function resize(css) {
  if (window.innerWidth >= 768) {
    console.log(111)
    return css.replace("red", "green")
  } else {
    console.log(222)
    return css.replace("red", "orange")
  }
}